package dto;

import java.io.Serializable;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 15:00 2021/1/28
 * @Modified By:
 */
public class UserDTO implements Serializable {

    private static final long serialVersionUID = -2734492572123854269L;

    private Long id;

    private String username;

    private Integer age;

    public UserDTO() {
    }

    public UserDTO(Long id, String username, Integer age) {
        this.id = id;
        this.username = username;
        this.age = age;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "UserDTO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", age=" + age +
                '}';
    }
}
